<html>
<head>
  <title>JSviewer Photo Gallery</title>
  <script src=jsviewer.js></script>
  <script src=languages.js></script>

<?php
include('configslide.cnf')
?>

  <noscript>
    <font face=Arial,Helvetica color=red><b>You need to enable JavaScript to view these pages.</b></font>
  </noscript>
</head>
<body bgcolor=black text=white link=yellow alink=orange vlink=red>
  <div id=data style="position:absolute; visibility:hidden">
    <form>
      <select name=pictures>
   <?php
  // Openen
  $map = "fotos/" . $_GET['map'];
  $current_dir = opendir($map);
  // Doorlopen
  while($entryname = readdir($current_dir))
  {
    // Controlleren of het niet . of .. is
    if($entryname != "." and $entryname!="..")
    {
	echo "<option value='" . $map . "/" . $entryname . ";'>foto\r\n";
    }
  }
  // Sluiten
  closedir($current_dir);
?>
      </select>
    </form>
  </div>
</body>
</html>


